package com.gopay.common.domain.pdus;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * 2017年2月20日 
 * www.gopay.com.cn Inc.All rights reserved.
 */

@Entity
@Table(name = "PDUS_COUNT_ZIP_LOG")
public class CountZipPo implements java.io.Serializable{

	private static final long serialVersionUID = -3843685511456821769L;
	
	private String id;
	
	private String zipName;
	
	private String bcpName;
	
	private String bussiness;
	
	private String protocal;
	
	private Integer dataCount;
	private long dataSize;
	
	private String filePath;
	
	private int version;
	
	/**
     * 创建时间
     */
    private Date createTm;
    
    @Id
    @Column(name = "ID", unique = true, nullable = false)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "ZIP_NAME", nullable = false, length = 100)
	public String getZipName() {
		return zipName;
	}
	public void setZipName(String zipName) {
		this.zipName = zipName;
	}
	@Column(name = "BCP_NAME", nullable = false, length = 100)
	public String getBcpName() {
		return bcpName;
	}
	public void setBcpName(String bcpName) {
		this.bcpName = bcpName;
	}
	
	@Column(name = "BUSSINES", nullable = false, length = 30)
	public String getBussiness() {
		return bussiness;
	}
	public void setBussiness(String bussiness) {
		this.bussiness = bussiness;
	}
	
	@Column(name = "PROTOCOL", nullable = false, length = 30)
	public String getProtocal() {
		return protocal;
	}
	public void setProtocal(String protocal) {
		this.protocal = protocal;
	}
	
	@Column(name = "DATA_COUNT", nullable = false)
	public Integer getDataCount() {
		return dataCount;
	}
	public void setDataCount(Integer dataCount) {
		this.dataCount = dataCount;
	}
	
	@Column(name = "DATA_SIZE", nullable = false)
	public long getDataSize() {
		return dataSize;
	}
	public void setDataSize(long dataSize) {
		this.dataSize = dataSize;
	}
	
	@Column(name = "FILE_PATH", nullable = false, length = 300)
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	@Version
    @Column(name = "\"VERSION\"")
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	
	@Column(name = "CREATE_TM")
    @Temporal(TemporalType.TIMESTAMP)
	public Date getCreateTm() {
		return createTm;
	}
	public void setCreateTm(Date createTm) {
		this.createTm = createTm;
	}
	
	
	
	@Override
	public String toString() {
		return "CountZipPo [id=" + id + ", zipName=" + zipName + ", bcpName="
				+ bcpName + ", bussiness=" + bussiness + ", protocal="
				+ protocal + ", dataCount=" + dataCount + ", dataSize="
				+ dataSize + ", filePath=" + filePath + ", version=" + version
				+ ", createTm=" + createTm  + "]";
	}
    
    
    
}
